UCF STIG Viewer Logo

The ESXi host SSH daemon must not permit user environment settings.


Overview

Finding ID Version Rule ID IA Controls Severity
V-93979 ESXI-65-000016 SV-104065r1_rule Medium
Description
SSH environment options potentially allow users to bypass access restriction in some configurations. Users must not be able to present environment options to the SSH daemon.
STIG Date
VMware vSphere 6.5 ESXi Security Technical Implementation Guide 2019-12-13

Details

Check Text ( C-93297r1_chk )
From an SSH session connected to the ESXi host, or from the ESXi shell, run the following command:

# grep -i "^PermitUserEnvironment" /etc/ssh/sshd_config

If there is no output or the output is not exactly "PermitUserEnvironment no", this is a finding.
Fix Text (F-100227r1_fix)
From an SSH session connected to the ESXi host, or from the ESXi shell, add or correct the following line in "/etc/ssh/sshd_config":

PermitUserEnvironment no